package com.example.demo.linkedlist;

import lombok.Getter;
import lombok.Setter;

/**
 * @description
 * @auther lijiewei
 * @date 2021/8/16 11:23
 */
@Setter
@Getter
public class SNode<T> {
    /** 节点数据. */
    private T element;
    /** 下个节点. */
    private SNode next;

    public SNode() {
    }

    public SNode(T element) {
        this.element = element;
    }

    public SNode(T element, SNode next) {
        this.element = element;
        this.next = next;
    }
}
